Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 17: Mapping Textures

../ch17/17fig11b.gif
Figure 17.11b

A green cylinder texture mapped with a grayscale striped image.

17fig11b.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Shape {
    appearance Appearance {
        material Material {
            diffuseColor 0.0 1.0 0.0
        }
        texture ImageTexture {
            url "lines_g.jpg"
        }
    }
    geometry Cylinder {
        height 2.0
        radius 1.0
    }
}